DicomObjects.NET.8.48 Documentation
DicomObjects.DicomWeb Namespace / WebContent Class / WebContent Constructor
The data from which to create the web content
The Content type to create. In many cases the main type will be "multipart/related" and sub-type will be "application/dicom", "application/dicom+xml" and "application/json"
The transfer syntax to use to encode the DICOM data
Cotrols whether to pull large data attributes into separate parts
A delegate to generate a URI for each items of bulk data, when passed the path to the attribute, or which returns null if the data is not to be replaced






In This Topic
    WebContent Constructor
    In This Topic
    Create a new recursive web content from a collection of DicomObjects.DicomDataSet objects.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal DataSets As DicomDataSetCollection, _
       ByVal Content As ContentType, _
       ByVal TransferSyntax As System.String, _
       ByVal MakeBulkData As System.Boolean, _
       ByVal GetBulkDataUri As System.Func(Of SequencePath,Uri) _
    )
    'Usage
     
    
    Dim DataSets As DicomDataSetCollection
    Dim Content As ContentType
    Dim TransferSyntax As System.String
    Dim MakeBulkData As System.Boolean
    Dim GetBulkDataUri As System.Func(Of SequencePath,Uri)
     
    Dim instance As New WebContent(DataSets, Content, TransferSyntax, MakeBulkData, GetBulkDataUri)
    public WebContent( 
       DicomDataSetCollection DataSets,
       ContentType Content,
       System.string TransferSyntax,
       System.bool MakeBulkData,
       System.Func<SequencePath,Uri> GetBulkDataUri
    )
    public WebContent( 
        DataSets: DicomDataSetCollection;
        Content: ContentType;
        TransferSyntax: System.String;
        MakeBulkData: System.Boolean;
        GetBulkDataUri: System.Func
    ); 
    public function WebContent( 
       DataSets : DicomDataSetCollection,
       Content : ContentType,
       TransferSyntax : System.String,
       MakeBulkData : System.boolean,
       GetBulkDataUri : System.Func
    );
    public: WebContent( 
       DicomDataSetCollection* DataSets,
       ContentType* Content,
       System.string* TransferSyntax,
       System.bool MakeBulkData,
       System.Func<SequencePath*,Uri*>* GetBulkDataUri
    )
    public:
    WebContent( 
       DicomDataSetCollection^ DataSets,
       ContentType^ Content,
       System.String^ TransferSyntax,
       System.bool MakeBulkData,
       System.Func<SequencePath^,Uri^>^ GetBulkDataUri
    )

    Parameters

    DataSets
    The data from which to create the web content
    Content
    The Content type to create. In many cases the main type will be "multipart/related" and sub-type will be "application/dicom", "application/dicom+xml" and "application/json"
    TransferSyntax
    The transfer syntax to use to encode the DICOM data
    MakeBulkData
    Cotrols whether to pull large data attributes into separate parts
    GetBulkDataUri
    A delegate to generate a URI for each items of bulk data, when passed the path to the attribute, or which returns null if the data is not to be replaced
    Example
    public static Uri ReplaceBulkDataByExternalUri(SequencePath path) { if (path.TargetAttribute.RawData != null && path.TargetAttribute.RawData.Length > BulkDataThreshold || path.TargetAttribute.KeywordCode == Keyword.PixelData) return new Uri(BaseUri + path.Format("/bulkdata/{1}/{2}/{3}", "/{0:X8}/{1}", "/{0:X8}")); return null; }
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also